package com.dh.blog.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import com.ewei.web.common.validator.SaveGroup;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 评论或回复vo
 * @author David
 *
 */
@JsonInclude(Include.NON_EMPTY)
public class CommentVo implements Serializable {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 6056821927906734508L;
	private String id;
	private String parentId;
	@JsonIgnore
	private int level = 0;
	@NotNull(message="{comment.content.not.null}",groups={SaveGroup.class})
	private String content;
	@NotNull(message="{article.id.not.null}",groups={SaveGroup.class})
	private Integer articleId;
	private Date createTime;
	private VisitorVo visitor;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public VisitorVo getVisitor() {
		return visitor;
	}
	public void setVisitor(VisitorVo visitor) {
		this.visitor = visitor;
	}
	public Integer getArticleId() {
		return articleId;
	}
	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	
}
